﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008BB RID: 2235
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HandleFriendScRsp : IMessage<HandleFriendScRsp>, IMessage, IEquatable<HandleFriendScRsp>, IDeepCloneable<HandleFriendScRsp>, IBufferMessage
	{
		// Token: 0x17001C1F RID: 7199
		// (get) Token: 0x060063E9 RID: 25577 RVA: 0x001090EF File Offset: 0x001072EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HandleFriendScRsp> Parser
		{
			get
			{
				return HandleFriendScRsp._parser;
			}
		}

		// Token: 0x17001C20 RID: 7200
		// (get) Token: 0x060063EA RID: 25578 RVA: 0x001090F6 File Offset: 0x001072F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HandleFriendScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001C21 RID: 7201
		// (get) Token: 0x060063EB RID: 25579 RVA: 0x00109108 File Offset: 0x00107308
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HandleFriendScRsp.Descriptor;
			}
		}

		// Token: 0x060063EC RID: 25580 RVA: 0x0010910F File Offset: 0x0010730F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HandleFriendScRsp()
		{
		}

		// Token: 0x060063ED RID: 25581 RVA: 0x00109118 File Offset: 0x00107318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HandleFriendScRsp(HandleFriendScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.uid_ = other.uid_;
			this.isAccept_ = other.isAccept_;
			this.friendInfo_ = ((other.friendInfo_ != null) ? other.friendInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060063EE RID: 25582 RVA: 0x0010917C File Offset: 0x0010737C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HandleFriendScRsp Clone()
		{
			return new HandleFriendScRsp(this);
		}

		// Token: 0x17001C22 RID: 7202
		// (get) Token: 0x060063EF RID: 25583 RVA: 0x00109184 File Offset: 0x00107384
		// (set) Token: 0x060063F0 RID: 25584 RVA: 0x0010918C File Offset: 0x0010738C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001C23 RID: 7203
		// (get) Token: 0x060063F1 RID: 25585 RVA: 0x00109195 File Offset: 0x00107395
		// (set) Token: 0x060063F2 RID: 25586 RVA: 0x0010919D File Offset: 0x0010739D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x17001C24 RID: 7204
		// (get) Token: 0x060063F3 RID: 25587 RVA: 0x001091A6 File Offset: 0x001073A6
		// (set) Token: 0x060063F4 RID: 25588 RVA: 0x001091AE File Offset: 0x001073AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsAccept
		{
			get
			{
				return this.isAccept_;
			}
			set
			{
				this.isAccept_ = value;
			}
		}

		// Token: 0x17001C25 RID: 7205
		// (get) Token: 0x060063F5 RID: 25589 RVA: 0x001091B7 File Offset: 0x001073B7
		// (set) Token: 0x060063F6 RID: 25590 RVA: 0x001091BF File Offset: 0x001073BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendSimpleInfo FriendInfo
		{
			get
			{
				return this.friendInfo_;
			}
			set
			{
				this.friendInfo_ = value;
			}
		}

		// Token: 0x060063F7 RID: 25591 RVA: 0x001091C8 File Offset: 0x001073C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HandleFriendScRsp);
		}

		// Token: 0x060063F8 RID: 25592 RVA: 0x001091D8 File Offset: 0x001073D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HandleFriendScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.Uid == other.Uid && this.IsAccept == other.IsAccept && object.Equals(this.FriendInfo, other.FriendInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060063F9 RID: 25593 RVA: 0x00109248 File Offset: 0x00107448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this.IsAccept)
			{
				num ^= this.IsAccept.GetHashCode();
			}
			if (this.friendInfo_ != null)
			{
				num ^= this.FriendInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060063FA RID: 25594 RVA: 0x001092CF File Offset: 0x001074CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060063FB RID: 25595 RVA: 0x001092D7 File Offset: 0x001074D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060063FC RID: 25596 RVA: 0x001092E0 File Offset: 0x001074E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Uid != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Uid);
			}
			if (this.IsAccept)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.IsAccept);
			}
			if (this.friendInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.FriendInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060063FD RID: 25597 RVA: 0x00109374 File Offset: 0x00107574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this.IsAccept)
			{
				num += 2;
			}
			if (this.friendInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FriendInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060063FE RID: 25598 RVA: 0x001093F0 File Offset: 0x001075F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HandleFriendScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			if (other.IsAccept)
			{
				this.IsAccept = other.IsAccept;
			}
			if (other.friendInfo_ != null)
			{
				if (this.friendInfo_ == null)
				{
					this.FriendInfo = new FriendSimpleInfo();
				}
				this.FriendInfo.MergeFrom(other.FriendInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060063FF RID: 25599 RVA: 0x00109480 File Offset: 0x00107680
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006400 RID: 25600 RVA: 0x0010948C File Offset: 0x0010768C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 48U)
					{
						this.Uid = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.IsAccept = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 90U)
					{
						if (this.friendInfo_ == null)
						{
							this.FriendInfo = new FriendSimpleInfo();
						}
						input.ReadMessage(this.FriendInfo);
						continue;
					}
					if (num == 120U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002625 RID: 9765
		private static readonly MessageParser<HandleFriendScRsp> _parser = new MessageParser<HandleFriendScRsp>(() => new HandleFriendScRsp());

		// Token: 0x04002626 RID: 9766
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002627 RID: 9767
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04002628 RID: 9768
		private uint retcode_;

		// Token: 0x04002629 RID: 9769
		public const int UidFieldNumber = 6;

		// Token: 0x0400262A RID: 9770
		private uint uid_;

		// Token: 0x0400262B RID: 9771
		public const int IsAcceptFieldNumber = 10;

		// Token: 0x0400262C RID: 9772
		private bool isAccept_;

		// Token: 0x0400262D RID: 9773
		public const int FriendInfoFieldNumber = 11;

		// Token: 0x0400262E RID: 9774
		private FriendSimpleInfo friendInfo_;
	}
}
